package cn.chenlh.fx.component;

import javafx.scene.Node;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;

public interface Box {

    // vertical
    static VBox verTmp(Node... children) {
        VBox box = new VBox(5);
        box.getChildren().addAll(children);
        return box;
    }

    // horizontal
    static HBox horTmp(Node... children) {
        HBox box = new HBox(5);
        box.getChildren().addAll(children);
        return box;
    }
}
